const mongoose = require("mongoose");
const restSchema = new mongoose.Schema({
  name: { type: String, required: true }, //姓名
  gender: { type: String, required: true }, //性别
  age: String, //年龄
  plotName: { type: String, required: true }, //小区位置
  address: { type: String}, //住址
  adminRest: { type: String }, //管理员
  id_number: { type: String, required: true },//身份证
  phone: { type: String, required: true },//电话
  vx: { type: String, required: true },//微信
  pictures:Array,//照片列表
  note_String:String,//备注
});
const RestModel = mongoose.model('rest',restSchema)
module.exports = RestModel